package com.zhuhanpeng.cloud.api.repository;

import com.zhuhanpeng.cloud.api.entity.ApiUserEntity;
import com.zhuhanpeng.cloud.api.entity.SearchApiUserEntity;
import com.zhuhanpeng.cloud.mybatis.entity.PtUserEntity;
import com.zhuhanpeng.cloud.mybatis.flexigrid.PagingEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ApiDao {
    List<PtUserEntity> queryUserInfo(@Param("entity") SearchApiUserEntity entity, @Param("paging") PagingEntity pagingEntity);

    Integer queryUserInfoTotal(@Param("entity") SearchApiUserEntity entity);

    ApiUserEntity queryUserByNameAndPassword(@Param("userName") String userName, @Param("password") String password);


}